export default {
    install(Vue) {
        /**
         * 图片错误监听
         */
        Vue.prototype.imageErorrHandle = function(obj, key, url = '/static/logo4.png') {
                this.$set(obj, key, url)
            }
            /**
             * @name: 格式化图片预览地址
             * @param {type}
             * @return: null
             */
        Vue.prototype.formatImage = function(url = '') {
            let base = 'http://49.233.69.175'
            return base + url
        }
    }
}